from typing import Tuple, Optional

def validate_form(name: str, last_name: str, email: str, address: str, phone: str) -> Tuple[bool, str]:
    """
    Validate the form data.

    Args:
    - name (str): The first name of the user.
    - last_name (str): The last name of the user.
    - email (str): The email address of the user.
    - address (str): The address of the user.
    - phone (str): The phone number of the user.

    Returns:
    - Tuple[bool, str]: A tuple containing a boolean indicating whether the form is valid and a message string.
    """

    # 验证姓名
    if not name:
        return False, "Please fill out your name."

    # 验证姓氏
    if not last_name:
        return False, "Please fill out your last name."

    # 验证电子邮件
    atpos = email.find("@")
    dotpos = email.rfind(".")
    if atpos < 1 or dotpos < atpos + 2 or dotpos + 2 >= len(email):
        return False, "Wrong Email."

    # 验证地址
    if not address:
        return False, "Please fill out your address."

    # 验证电话号码
    if not phone or not phone.isdigit():
        return False, "Please fill out your phone number with digits only."

    # 如果所有验证都通过
    return True, "Thank YOU"

# 假设这些是从表单中获取的值
name: str = input("Enter your name: ")
last_name: str = input("Enter your last name: ")
email: str = input("Enter your email: ")
address: str = input("Enter your address: ")
phone: str = input("Enter your phone number: ")

# 调用验证函数
is_valid: bool
message: str
is_valid, message = validate_form(name, last_name, email, address, phone)

# 打印消息
print(message)